if (CONFIG_SOCKET_POSIX_ENABLE)
include_directories(socket_posix)
aux_source_directory(socket_posix   PLUM_SOCKET)

elseif (CONFIG_SOCKET_FREERTOS_TCP_ENABLE)
include_directories(../../thirdparty/netstack/FreeRTOS-Plus-TCP/source/include)
aux_source_directory(socket_freertos   PLUM_SOCKET)

elseif (CONFIG_SOCEKT_MODEM_ENABLE)
aux_source_directory(socket_modem   PLUM_SOCKET)

elseif (CONFIG_SOCEKT_LWIP_ENABLE)
include_directories(../../thirdparty/netstack/lwip/src/include)
include_directories(socket_lwip)
aux_source_directory(socket_lwip    PLUM_SOCKET)
endif()

add_library(socket 
            STATIC 
            ${PLUM_SOCKET})